﻿using System;
using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 表示一次操作消耗服务能力单元的值或是一个表的预留读写吞吐量的值。
    /// </summary>
    [ProtoContract(Name = "CapacityUnit")]
    public class CapacityUnit
    {
        /// <summary>
        /// 本次操作消耗的读服务能力单元或该表的预留读吞吐量。
        /// </summary>
        [ProtoMember(1, Name = "read")]
        public Int32 Read { get; set; }
        /// <summary>
        /// 本次操作消耗的写服务能力单元或该表的预留写吞吐量。
        /// </summary>
        [ProtoMember(2, Name = "write")]
        public Int32 Write { get; set; }

        public CapacityUnit()
        {

        }
        public CapacityUnit(int read, int write)
        {
            this.Read = read;
            this.Write = write;
        }


    }
}
